<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDiscountRuleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('discount_rule', function(Blueprint $table)
        {
            //可用余额记录
            $table->increments('id');
            $table->string('rule_name') ->comment('规则名称');
            $table->decimal('rate')     ->default(1)  ->comment('优惠利率');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
